package st.business.tepth.business.login;


import io.reactivex.disposables.Disposable;
import st.business.tepth.base.OnDataConvertListener;
import st.business.tepth.manager.UserBean;
import st.shadow.library.core.base.mvp.BaseModel;
import st.shadow.library.core.base.mvp.BasePresenter;
import st.shadow.library.core.base.mvp.BaseView;

/**
 * Author: shadow
 * Email:  1025431817@qq.com
 * Time:   2019-01-14 19:23
 */

public interface LoginContract {
    interface View extends BaseView {
        void succeed(UserBean userBean);
        void failed(int code,String msg);
    }

    interface Model extends BaseModel {
        Disposable login(String account, String password, int type,
                         OnDataConvertListener<UserBean> listener);
    }

    abstract class Presenter extends BasePresenter<View> {
        abstract void login(String account, String password, int type);
    }
}
